Fix the check that the argument count is even, for xenstore_write.
authoremellor@ewan <emellor@ewan>
Tue, 13 Sep 2005 14:46:20 +0000 (15:46 +0100)
committeremellor@ewan <emellor@ewan>
Tue, 13 Sep 2005 14:46:20 +0000 (15:46 +0100)
tools/xenstore/xenstore_client.c

index 842aca33fe070e7bdbab0b677dcdc5aa755bbd01..28be87859b9c30df3ca4085f4e8c0f51757366b2 100644 (file)
@@ -77,7 +77,7 @@ main(int argc, char **argv)
        /* NOTREACHED */
     }
 #if defined(CLIENT_write)
-    if ((argc - optind) % 1) {
+    if ((argc - optind) % 2 == 1) {
        usage(argv[0]);
        /* NOTREACHED */
     }